import sys

from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QLabel, QWidget

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()

        layout = QVBoxLayout()

        for arg in sys.argv:
            l = QLabel(arg)
            layout.addWidget(l)

        w = QWidget()
        w.setLayout(layout)
        self.setCentralWidget(w)

app = QApplication(sys.argv)
window = MainWindow()
window.show()

app.exec()